package com.snacks.data;

@SuppressWarnings("javadoc")
public class URLconstan {
	// Các hằng số chứa giá trị các URL của web sevice
	private static String Server = "http://snacks.hfs.com.vn/";//"http://192.168.1.20:8252/";
	private static String service = "http://snacks.hfs.com.vn/index.php/service/";//"http://192.168.1.20:8252/index.php/service/";	

	private static String loginUrl = getService() + "login";
	private static String signUrl = getService() + "signUp";
	private static String existsUserUrl = getService() + "existsUser";
	private static String topItems = getService() + "topItems";
	private static String onceItem = getService() + "getItem";
	private static String searchItem = getService() + "searchItem";
	private static String postItem = getService() + "postItem";
	private static String searchItemByName = getService() + "searchItemByName";
	
	public static String getServer(){
		return Server;
	}
	public static String getService() {
		return service;
	}

	public static String getLoginService() {
		return loginUrl;
	}

	public static String getSignService() {
		return signUrl;
	}
	
	public static String getExistsUserService(){
		return existsUserUrl;
	}
	
	public static String getTopItemService(){
		return topItems;
	}
	
	public static String getItemService(){
		return onceItem;
	}
	
	public static String getSearchItemService(){
		return searchItem;
	}
	public static String getPostItemService(){
		return postItem;
	}
	public static String getSearchItemByName(){
		return searchItemByName;
	}
}
